/**
 * Created by XGJ on 2017/9/22.
 */

import {NgModule} from "@angular/core";
import {IonicPageModule} from "ionic-angular";
import {MainPage} from "./main";
import {AboutPage} from "./about/about";
import {LoginService} from "../login/login.Service";
import {LoginModelPage} from "../login/login";
import {ContactPage} from "../component/contact-component/contact.component";
import {ComponentModule} from "../component/component.module";

// ngModule 是装饰器.，里面的内容都是元数据

@NgModule({
    imports:[
        ComponentModule,
        IonicPageModule.forChild(MainPage)
    ],   //导入模块  （导入其他模块）
    declarations:
        [
            MainPage,
            LoginModelPage,
            AboutPage,
            ContactPage
        ],  //导入组建  （包装组建或指令等。）
    entryComponents:
        [
            MainPage,
            LoginModelPage,
            AboutPage,
            ContactPage
        ],
    providers:
        [
            LoginService
        ], //导入服务 （依赖注入）
    exports:
        [
        LoginModelPage
    ], //导出对外使用的组件
})

export class MainModule{

}